package com.li.mybatisplus.service.Impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.li.mybatisplus.entity.User;
import com.li.mybatisplus.mapper.UserMapper;
import com.li.mybatisplus.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author liXingaYu
 * @create 2022-03-16 11:40
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

//    @Resource
//    private UserMapper userMapper;


    @Override
    public List<User> findByName(String name) {
        return baseMapper.selectByName(name);
    }
}
